﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program05
{
    //成绩管理类
    public class GradeManage
    {
        public Student Stu { get; }
        public Course1 C1 { get; }

        public GradeManage() { }

        //只初始化学生信息的构造方法
        public GradeManage(string stuName,int stuAge,bool stuSex)
        {
            Stu = new Student
            {
                Name = stuName,
                Age = stuAge,
                Sex = stuSex
            };
        }

        //带有课程的构造方法
        public GradeManage(string stuName, int stuAge, bool stuSex,string cName,int cPeriod,int cCredit,int cScore)
        {
            Stu = new Student
            {
                Name = stuName,
                Age = stuAge,
                Sex = stuSex
            };
            C1 = new Course1
            {
                Name = cName,
                Period = cPeriod,
                Credit = cCredit,
                Score = cScore
            };
        }

        //打印
        public void Print() => Console.WriteLine($"{Stu},{C1}");
    }
}
